#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int ADD(int x, int y)
{
	int m = 0;
	int n = 0;
	m = x ^ y;
	n = (x & y) << 1;
	int c = 0;
	int d = 0;
	while (m & n)
	{
		c = m ^ n;
		d = (m & n) << 1;
		m = c;
		n = d;
	}
	return m | n;
}
int main()
{
	int a = 0;
	int b = 0;
	scanf("%d%d", &a, &b);
	int f =ADD(a, b);
	printf("%d", f);
	return 0;
}